<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="FrmImputaciones.aspx.vb" Inherits="TGB.WebForm1" %>

<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
        <link href="TGB.css" rel="stylesheet" type="text/css"  />

</head>
<body>
    <form id="form1" runat="server">
    <div>
                <table style="width: 477px" class="tabla">
                    <tr>
                        <td colspan="5" style="height: 20px">
                            <asp:Label ID="Label13" runat="server" Height="24px" Style="font-weight: bold; font-size: 14px;
                                vertical-align: middle; font-family: Calibri; background-color: #ff3333; text-align: center"
                                Text="Cancela Deuda" Width="100%"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 56px; height: 20px">
                            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                                Text="Imputacion :" Width="48px"></asp:Label></td>
                        <td style="width: 298px; height: 20px">
                            <asp:RadioButton ID="RdbBanco" runat="server" Text="Banco" AutoPostBack="True" GroupName="Imputacion" />&nbsp; &nbsp;<asp:RadioButton
                                ID="RdbCheque" runat="server" Text="Cheque" AutoPostBack="True" GroupName="Imputacion" />&nbsp; &nbsp;<asp:RadioButton ID="RdbOtra"
                                    runat="server" Checked="True" Text="Otras" AutoPostBack="True" GroupName="Imputacion" /></td>
                        <td style="height: 20px">
                            </td>
                        <td style="width: 90px; height: 20px" align="right">
                            <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                                Text="Adeudado :" Width="48px"></asp:Label></td>
                        <td style="width: 73px; height: 20px">
                            <asp:Label ID="LblTotal" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                                ForeColor="#C00000" Text="0,00" Width="48px"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 56px; height: 20px" valign="top">
                    <asp:Label ID="LblImputacion" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                        Text="Otras :" Width="48px"></asp:Label></td>
                        <td style="width: 298px; height: 20px">
                            <asp:Panel ID="PnlOtra" runat="server" Width="100%">
                    <asp:DropDownList ID="CboOtras" runat="server" CssClass="campotxt" Width="100%" AutoPostBack="True">
                        <asp:ListItem>Caja</asp:ListItem>
                        <asp:ListItem>Retenciones</asp:ListItem>
                    </asp:DropDownList>
                                <asp:Panel ID="PnlRetenciones" runat="server" Height="50px" Style="text-align: center"
                                    Visible="False" Width="100%">
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxtNumero"
                                        Display="Dynamic" ErrorMessage="Error, Formato : #####" ValidationExpression="^\d+"></asp:RegularExpressionValidator>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtNumero"
                                        Display="Dynamic" ErrorMessage="Error, el valor no puede ser nulo"></asp:RequiredFieldValidator><br />
                                    <asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                                        Text="Descripcion :" Width="48px"></asp:Label>
                                    <asp:DropDownList ID="CboDescripcion" runat="server" CssClass="campotxt" Width="134px">
                                        <asp:ListItem Selected="True">Ganancias</asp:ListItem>
                                        <asp:ListItem>IVA</asp:ListItem>
                                        <asp:ListItem>SUSS</asp:ListItem>
                                        <asp:ListItem>IIBB</asp:ListItem>
                                    </asp:DropDownList><br />
                                    <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                                        Text="Numero :" Width="48px"></asp:Label>
                                    <asp:TextBox ID="TxtNumero" runat="server" CssClass="campotxt" Font-Bold="True" MaxLength="18"
                                        Width="142px"></asp:TextBox></asp:Panel>
                            </asp:Panel>
                            <asp:Panel ID="PnlCheque" runat="server" Width="100%">
                    <asp:DropDownList ID="CboCheque" runat="server" CssClass="campotxt" Width="100%" AutoPostBack="True">
                        <asp:ListItem>Cheque :</asp:ListItem>
                    </asp:DropDownList></asp:Panel>
                    
                            <asp:Panel ID="PnlBanco" runat="server" Visible="False" Width="100%">
                    <asp:DropDownList ID="CboBanco" runat="server" CssClass="campotxt" Width="100%" AutoPostBack="True">
                    </asp:DropDownList><br />
                                <br />
                    <asp:DropDownList ID="CboCuenta" runat="server" CssClass="campotxt" Width="100%">
                    </asp:DropDownList></asp:Panel>
                        </td>
                        <td style="height: 20px" valign="bottom">
                            <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="12px"
                                Text="Total" Width="48px"></asp:Label></td>
                        <td style="width: 90px; height: 20px" valign="bottom">
                            &nbsp;
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtTotal"
                                Display="Dynamic" ErrorMessage="Error, Formato : #,##" ValidationExpression="^\d+(\,\d{1,2})?$"></asp:RegularExpressionValidator>
                            &nbsp;
                            <asp:TextBox ID="TxtTotal" runat="server" CssClass="campotxt" Font-Bold="True" MaxLength="8"
                                Width="72px"></asp:TextBox></td>
                        <td style="width: 73px; height: 20px" valign="bottom">
                            <asp:LinkButton ID="LnkAgregar" runat="server" TabIndex="11">Agregar</asp:LinkButton></td>
                    </tr>
                    <tr>
                        <td colspan="5" style="height: 19px">
                            <asp:Label ID="LblError" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Overline="False"
                                Font-Size="13px" Font-Strikeout="False" Font-Underline="False" ForeColor="Red"
                                Style="text-align: center" Width="100%"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="height: 20px; width: 56px;">
                    </td>
                        <td style="height: 20px;" colspan="3">
                            <asp:GridView ID="GridImputaciones" runat="server" AutoGenerateColumns="False" BackColor="White"
                                BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" CellSpacing="1"
                                CssClass="tabla" ForeColor="Black" GridLines="Horizontal" Width="352px">
                                <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Imputacion">
                                        <ItemTemplate>
                                            <asp:Label ID="LblImputacion" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label>
                                            <asp:HiddenField ID="HFBanco" runat="server" Value='<%# Bind("Banco") %>' />
                                            <asp:HiddenField ID="HFCuenta" runat="server" Value='<%# Bind("Cuenta") %>' />
                                            <asp:HiddenField ID="HFFechaVence" runat="server" Value='<%# Bind("FechaVence") %>' />
                                            <asp:HiddenField ID="HFFechaEmision" runat="server" Value='<%# Bind("FechaEmision") %>' />
                                            <asp:HiddenField ID="HFObservacion" runat="server" Value='<%# Bind("Observacion") %>' />
                                            <asp:HiddenField ID="HFANombreDe" runat="server" Value='<%# Bind("ANombreDe") %>' />
                                            <asp:HiddenField ID="HFIdCheque" runat="server" Value='<%# Bind("IdCheque") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Total">
                                        <ItemTemplate>
                                            <asp:Label ID="LblTotal" runat="server" Text='<%# Bind("Total") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LnkRemover" runat="server" CommandName="Remover">Remover</asp:LinkButton><asp:Label
                                                ID="LblSeparador" runat="server" Style="text-align: center" Text="/" Width="18px"></asp:Label><asp:LinkButton ID="LnkMasInformacion" runat="server" CommandName="MasInformacion">Mas Info</asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                            </asp:GridView>
                    </td>
                        <td style="width: 73px; height: 20px; vertical-align: bottom;">
                            <asp:LinkButton ID="LnkAceptar" runat="server" TabIndex="11">Aceptar</asp:LinkButton></td>
                    </tr>
                </table>    
    </div>
    </form>
</body>
</html>
